package com.cnzhy;

import com.cnzhy.bean.User;
import com.cnzhy.mapper.UserMapper;
import com.cnzhy.session.MySqlSession;

/**
 * @author 赵 岩
 */
public class TestMyBatis {

	/**
	 * 启动测试
	 */
    public static void main(String[] args) {
        MySqlSession sqlSession = new MySqlSession();
        UserMapper mapper = sqlSession.getMapper(UserMapper.class);
        User user = mapper.getUserById("3");
        System.out.println(user.getUsername());
    }

}
